# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
_libname=activation
pkgname=java-${_libname}-gnu
pkgver=1.1.1
pkgrel=1
pkgdesc="JavaBeans Activation Framework (JAF), framework for declaring what beans operate on what MIME type data"
arch=('any')
url="http://www.gnu.org/s/classpathx/jaf/jaf.html"
license=('LGPL')
depends=('java-runtime-headless')
makedepends=('apache-ant')
source=(http://ftp.gnu.org/gnu/classpathx/${_libname}-${pkgver}.tar.gz)
md5sums=('de50d7728e8140eb404f2b4554321f8c')

build() {
  cd "${srcdir}/${_libname}-${pkgver}"

  ant dist
}

package() {
  install -Dm644 ${srcdir}/${_libname}-${pkgver}/activation.jar \
                 ${pkgdir}/usr/share/java/${_libname}-${pkgver}.jar

  ln -s ${_libname}-${pkgver}.jar ${pkgdir}/usr/share/java/${_libname}.jar
}
